Skip to content

Add Morpheus (mor.org) as an AI provider#4

Closed
Bougey wants to merge 3 commits intoHackingDave:mainfrom
Bougey:feature/add-morpheus-provider
Closed

Add Morpheus (mor.org) as an AI provider#4
Bougey wants to merge 3 commits intoHackingDave:mainfrom
Bougey:feature/add-morpheus-provider

Conversation

@Bougey
Copy link

@Bougey Bougey commented Feb 25, 2026

Summary

Adds Morpheus as a third provider option for the sidechannel AI assistant, alongside OpenAI and Grok.

Morpheus is a decentralized AI compute marketplace with an OpenAI-compatible API (https://api.mor.org/api/v1/chat/completions). It currently offers free inference access and supports models like Hermes-3-Llama-3.1-70B, with tool calling, vision, embeddings, and TTS capabilities.

Changes

  • sidechannel_runner.py: Added api.mor.org to ALLOWED_API_HOSTS and MORPHEUS_API_URL constant
  • config.py: Added morpheus provider with auto-detection from MORPHEUS_API_KEY, default model (LMR-Hermes-3-Llama-3.1-70B), and API URL routing
  • config/.env.example: Added MORPHEUS_API_KEY entry
  • config/settings.yaml.example: Updated provider/model comments to include Morpheus
  • README.md and CONTRIBUTING.md: Updated documentation references

How it works

Same pattern as the existing OpenAI/Grok providers — zero new dependencies:

  1. Set MORPHEUS_API_KEY in .env (get one free at app.mor.org)
  2. Provider auto-detects from the env var, or set explicitly: provider: "morpheus"
  3. Uses the same /v1/chat/completions OpenAI-compatible schema

API Docs

Test plan

  • Verify existing OpenAI and Grok provider paths are unchanged
  • Test Morpheus provider with a valid API key (MORPHEUS_API_KEY=sk-...)
  • Test auto-detection: only MORPHEUS_API_KEY set → selects morpheus provider
  • Test explicit config: provider: "morpheus" in settings.yaml
  • Verify ALLOWED_API_HOSTS validation accepts api.mor.org

🤖 Generated with Claude Code

Brian Bourgerie and others added 3 commits February 24, 2026 22:11
Morpheus is a decentralized AI compute marketplace (https://mor.org) with an
OpenAI-compatible API. This adds it as a third provider option alongside
OpenAI and Grok.

Changes:
- Add api.mor.org to ALLOWED_API_HOSTS and MORPHEUS_API_URL constant
- Add 'morpheus' provider auto-detection from MORPHEUS_API_KEY env var
- Add default model (LMR-Hermes-3-Llama-3.1-70B) for Morpheus provider
- Update .env.example, settings.yaml.example, README, and CONTRIBUTING docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- glm-5 is the latest flagship model on the Morpheus marketplace
- Added comment in settings.yaml.example showing how to browse 30+ available models
  via the API or app.mor.org

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Most Morpheus models have a ":web" variant (e.g. glm-5:web) that enables
internet search during inference.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HackingDave
Copy link
Owner

Thanks for the suggestion here! I took most of it and kept it more generic to where you can add any provider you want not specifically morpheus. Easy add to settings if you want to use any OpenAI standard API format. Thanks! Should be posted shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants